﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Growatt.CreateXLXFormWord
{
    public class ShinebusUploadRecordFeishuModel
    {

        public class UpdateFields
        {
            public string rowid { get; set; }
            public string UserId { get; set; }
            public string UserInformation { get; set; }
            public string CurrentVersion { get; set; }
            public string LastChangeVersionTime { get; set; }
            public string LastLoginTime { get; set; }
        }

        public class UpdateRecord
        {
            public UpdateFields fields { get; set; }
            public string id { get; set; }
            public string record_id { get; set; }
        }

        public class UpdateData
        {
            public UpdateRecord record { get; set; }
        }

        public class UpdateResponse
        {
            /// <summary>
            /// 代码，表示请求的状态
            /// </summary>
            public int code { get; set; }
            /// <summary>
            /// 数据部分，包含具体的记录信息
            /// </summary>
            public UpdateData data { get; set; }
            /// <summary>
            /// 消息，表示请求的结果描述
            /// </summary>
            public string msg { get; set; }
        }

        public class 设备型号Item
        {
            /// <summary>
            /// 
            /// </summary>
            public string text { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string type { get; set; }
        }

        public class 升级后目标版本Item
        {
            /// <summary>
            /// 
            /// </summary>
            public string text { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string type { get; set; }
        }
        public class 更新日志Item
        {
            /// <summary>
            /// 
            /// </summary>
            public string text { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string type { get; set; }
        }

        public class 上传正式服务器Item
        {
            /// <summary>
            /// 
            /// </summary>
            public string text { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string type { get; set; }
        }
        public class 更新日期Item
        {
            /// <summary>
            /// 
            /// </summary>
            public string text { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string type { get; set; }
        }
        public class 升级前运行版本Item
        {
            /// <summary>
            /// 
            /// </summary>
            public string text { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string type { get; set; }
        }

        public class Fields
        {
            //public List<升级前运行版本Item> 升级前运行版本 { get; set; }
            public List<设备型号Item> 设备型号 { get; set; }
            public List<升级后目标版本Item> 升级后目标版本 { get; set; }
            public List<更新日志Item> 更新日志 { get; set; }
            public List<上传正式服务器Item> 上传正式服务器 { get; set; }
            public List<上传正式服务器Item> 更新日期 { get; set; }

        }

        public class ItemsItem
        {
            /// <summary>
            /// 
            /// </summary>
            public Fields fields { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string record_id { get; set; }
        }

        public class Data
        {
            /// <summary>
            /// 
            /// </summary>
            public string has_more { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public List<ItemsItem> items { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int total { get; set; }
        }

        public class Root
        {
            /// <summary>
            /// 
            /// </summary>
            public int code { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public Data data { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string msg { get; set; }
        }


    }
}
